Slightly more accurate dependency tracking for the .c and .h files in
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 7 Oct 2009 06:45:14 +0000 (07:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 7 Oct 2009 06:45:14 +0000 (07:45 +0100)
include/compat.  They should depend on the scripts which generate
them, as well as the inputs to those scripts.

Signed-off-by: Steven Smith <steven.smith@citrix.com>
xen/include/Makefile

index 0223835c0871944638f9eed99183fac0fdf7501c..8f9975ce3183fff8703b24441dc7023e6d7a55b2 100644 (file)
@@ -44,7 +44,7 @@ public-$(CONFIG_IA64) := $(wildcard public/arch-ia64/*.h public/arch-ia64/*/*.h)
 .PHONY: all
 all: $(headers-y)
 
-compat/%.h: compat/%.i Makefile
+compat/%.h: compat/%.i Makefile $(BASEDIR)/tools/compat-build-header.py
        set -e; id=_$$(echo $@ | tr '[:lower:]-/.' '[:upper:]___'); \
        echo "#ifndef $$id" >$@.new; \
        echo "#define $$id" >>$@.new; \
@@ -60,7 +60,7 @@ compat/%.h: compat/%.i Makefile
 compat/%.i: compat/%.c Makefile
        $(CPP) $(filter-out -M% .%.d,$(CFLAGS)) $(cppflags-y) -o $@ $<
 
-compat/%.c: public/%.h xlat.lst Makefile
+compat/%.c: public/%.h xlat.lst Makefile $(BASEDIR)/tools/compat-build-source.py
        mkdir -p $(@D)
        grep -v 'DEFINE_XEN_GUEST_HANDLE(long)' $< | \
        $(PYTHON) $(BASEDIR)/tools/compat-build-source.py >$@.new